/*
 * MapperSolicitudFiec.java
 *
 * Created on July 6, 2007, 1:45 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package hero.mapper;

import hero.interfaces.BnRoleLocal;
import hero.util.HeroException;
import java.util.*;

/**
 *
 * @author kabad
 */
public class MapperSolicitudFiec implements hero.mapper.RoleMapperI  {
    
    /** Creates a new instance of MapperSolicitudFiec */
    public MapperSolicitudFiec() {
    }
    
    public Collection searchMembers(Object b,BnRoleLocal n, String userName) throws HeroException {
        Collection users = new ArrayList();
        String roleName=n.getName();
        String projectName=n.getBnProject().getName();
        
        // logs trace
        System.out.println  ("*********");
        System.out.println  ("Nombre del usuario: "+userName);
        System.out.println("usuario creador: "+n.getBnProject().getCreator());
        System.out.println("[xxxxCustomCustomerGroupMembers] BnRole name:"+roleName + " - Project name = " + projectName);
        users.add("bsoa");
        if(roleName.equals("CoordinadorCarreraNueva")){
            users.add("cvaca");
        }
        return users;
        
    }
}
